require('../../assets/css/index.less');
import('animate.css');

require('./advert.less')

// 引入window
const { $, g } = require('../../utils/dom')
/**
 * window加载事件
 */
$(function () {

    /**
     * 倒计时
     */
    const countDown = () => {
        let time = 5
        setInterval(() => {
            time--;
            if (time === 0) {
                location.href = './login.html'
            } else {
                g('#timeBox').textContent = time + 's'
            }
        }, 1000)
    }
    countDown();
})


